<!DOCTYPE html>
<html>
  <head>

    <title>Layui</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/css/layui.css">
    <!-- <script src="js/jquery-1.4.1.min.js" type="text/javascript"></script> -->
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <script src="js/audio.min.js"></script>
  </head>

  <body >
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
      <legend>mp3</legend>
    </fieldset>
    <audio src="1.mp3" id=vid1 preload="auto"/>

    <div class="layui-btn-container" id="content">
    </div>
    <script src="layui/layui.js" charset="utf-8"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
  </body>

<script language="javascript" type="text/javascript">

      audiojs.events.ready(function() {
      var as = audiojs.createAll();
    });
  $(function () {
    var path =getQueryVariable("path");
    path=decodeURI(path);
      
        var player = videojs('vid1');
				  var mp3Src ="\\" + path + "\\"+a;
          console.log(mp3Src);
          player.src(mp3Src);

  })


</script>

</html>